import 'package:flutter/material.dart';

/// List widget used as caption in list view.
/// This is referred to MIUI desgin.
class ListCaption extends StatelessWidget {
  const ListCaption(this.caption, {super.key});

  final String caption;

  @override
  Widget build(BuildContext context) {
    return ListTile(
      title: Text(
        caption,
        style: Theme.of(context).textTheme.bodySmall,
      ),
    );
  }
}
